import { request } from "./core";
import { METHOD, PATH } from "./config";

const axios = {
  //获取商品列表
  slide(params) {
    return request(METHOD.GET, PATH.slide, params);
  },
  buttomlist(params) {
    return request(METHOD.GET, PATH.buttomlist, params);
  },
  slidelittle(params) {
    return request(METHOD.GET, PATH.slidelittle, params);
  },
  cartlist(params) {
    return request(METHOD.GET, PATH.cartlist, params);
  },
  category(params) {
    return request(METHOD.GET, PATH.category, params);
  },
};

export default axios;
